<div class="row">
	<div class="col-md-12">
		<form id="editForm" class="form-horizontal" action="${request.contextPath}/cms/link/update" method="post" onsubmit="return false">
			<input type="hidden" id="id" name="id" value="${cmsLink.id}">
			<div class="box-body">
				<div class="form-group">
					<label id="linkSiteNameLabel" for="linkSiteName" class="col-sm-2 control-label">网站名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="siteName" id="linkSiteName" value="${cmsLink.siteName}" placeholder="输入网站名称...">
					</div>
				</div>
				<div class="form-group">
					<label id="linkSiteDescriptionLabel" class="col-sm-2 control-label" >网站描述</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="siteDescription" id="linkSiteDescription" value="${cmsLink.siteDescription}" placeholder="输入网站描述...">
					</div>
				</div>
				<div class="form-group">
					<label id="linkSiteLogoLabel" for="linkSiteLogo" class="col-sm-2 control-label">网站Logo</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="siteLogo" id="linkSiteLogo" value="${cmsLink.siteLogo}" placeholder="输入网站Logo图片地址...">
					</div>
				</div>
				<div class="form-group">
					<label id="linkSiteUrlLabel" for="linkSiteUrl" class="col-sm-2 control-label">网站网址</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="siteUrl" id="linkSiteUrl" value="${cmsLink.siteUrl}" placeholder="输入网站网址...">
					</div>
				</div>
				<div class="form-group">
					<label id="linkSiteTypeLabel" for="linkSiteType" class="col-sm-2 control-label">网站类别</label>
					<div class="col-sm-9">
						<select class="form-control" id="linkSiteType"  name="siteType"  value="${cmsLink.siteType}" style="width: 100%;" placeholder="选择网站类别...">
						</select>
					</div>
				</div>
				<div class="form-group">
					<label id="linkSiteVisitLabel" for="linkSiteVisit" class="col-sm-2 control-label">网站访问量</label>
					<div class="col-sm-9">
						<select class="form-control" id="linkSiteVisit"  name="siteVisit" value="${cmsLink.siteVisit}" style="width: 100%;"  placeholder="选择网站访问量...">
						</select>
					</div>
				</div>
				<div class="form-group">
					<label id="linkSiteRecordInfoLabel" for="linkSiteRecordInfo" class="col-sm-2 control-label">网站备案信息</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="siteRecordInfo" id="linkSiteRecordInfo" value="${cmsLink.siteRecordInfo}" placeholder="输入网站备案信息...">
					</div>
				</div>
				<div class="form-group">
					<label id="linkEmailLabel" for="linkEmail" class="col-sm-2 control-label">邮箱</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="email" id="linkEmail" value="${cmsLink.email}" placeholder="输入邮箱...">
					</div>
				</div>
				<div class="form-group">
					<label id="linkPriorityLabel" for="linkPriority" class="col-sm-2  control-label">优先顺序</label>
					<div class="col-sm-4">
						<input  class="form-control" name="priority" id="linkPriority" type="number" value="${cmsLink.priority}" placeholder="输入优先顺序...">
					</div>
					<label id="linkStatusLabel" for="linkStatus" class="col-sm-1  control-label">状态</label>
					<div class="col-sm-4">
						<select class="form-control" id="linkStatus" name="status" style="width: 100%;" placeholder="选择状态...">
						</select>
					</div>
				</div>
				<div class="form-group">
					<label id="linkRemarkLabel" class="col-sm-2 control-label">备注</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="remark" id="linkRemark" value="${cmsLink.remark}" placeholder="输入备注...">
					</div>
				</div>
				<div class="error-message text-center" >
					<span class="error-icon"></span>
					<span id="error-msg" class="error-msg" ></span>
				</div>
			</div>
			<div class="box-footer">
				<div class="pull-right">
					<button type="button" class="btn btn-default btn-sm" data-dismiss="modal"><i class="fa fa-close"></i> 关闭</button>
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">

    $(function() {

        $("#linkStatus").select2({
            data: StatusStore,
            theme: "bootstrap"
        }).val('${cmsLink.status}').trigger("change");
        $("#linkSiteType").select2({
            data: SiteTypeStore,
            theme: "bootstrap"
        }).val('${cmsLink.siteType}').trigger("change");
        $("#linkSiteVisit").select2({
            data: SiteVisitStore,
            theme: "bootstrap"
        }).val('${cmsLink.siteVisit}').trigger("change");

    });
</script>